					let u = location.search;
					let ur = decodeURI(u);
					let typeName = ur.substr(ur.indexOf("=")+1);
					var span = $('#drop1').children(":first");
					console.info(span);
					span.text(typeName);
					$.ajax({
						type: "get",
						url: "/photo/picTypeAll.do"+ur,
						dataType: "json",
						success: function(data) {				
							var photo = "";
							$.each(data, function(i, n) {							
								photo += "<a href='pic-details.html?title="+n["photoPicTitle"]+""
								+"&writerId="+n["photoWriterId"]+""+"&picClassId="+n["photoPicClassId"]+""+"&picId="+n["photoPicId"]+"'>"+"<img src="+"'"
								+n["photoThumbnailPicPath"]+"'"+" width='300px'/>"+"</a>";
							});
							$('#picAllImgShow').append(photo);
						}
					});
					$.ajax({
						type: "get",
						url: "/photo/picType.do",
						dataType: "json",
						success: function(data) {				
							var picType = "";
							$.each(data, function(i, n) {							
								picType +=  "<li><a href='pic-type.html?name="+n["photoPicClassName"]+"'"+">"+n["photoPicClassName"]+"</a></li>";
							});
							$('.dropdown-menu').append(picType);
						}
					});
					
					